home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2837 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: troll.powertech.no!usenet
  2. From: leo@powertech.no (Eivind Nordseth)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: SAS/C Bug? CXERR: 460351
  5. Date: 04 Feb 96 12:49:44 +0100
  6. Organization: Ultima Thule Software
  7. Message-ID: <1795.6608T769T2248@powertech.no>
  8. NNTP-Posting-Host: dial-17.oslo.no.powertech.net
  9. X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
  10.  
  11.  
  12. I have a litte problem with some SAS/C code.
  13.  
  14. The following code gives an CXERR at the "TAG_END);" line:
  15. ------------------begin--------------------
  16. [...]
  17. if(ReqToolsBase = (struct ReqToolsBase *) OpenLibrary(REQTOOLSNAME, 38))
  18. {
  19.    logmsg->lm_Return = rtEZRequestTags(mem, 
  20.       logmsg->lm_GadFmt ? (STRPTR) logmsg->lm_GadFmt : (STRPTR) "Continue", 
  21.       NULL, logmsg->lm_ArgArray,
  22.       RTEZ_ReqTitle, logmsg->lm_Program,
  23.       (pubscreen ? RT_PubScrName : TAG_IGNORE), pubscreen, 
  24.       RT_Underscore, '_',
  25.       TAG_END);
  26.  
  27.    CloseLibrary((struct Library *) ReqToolsBase);
  28. }
  29. [....]
  30. ------------------end--------------------
  31. SAS/C Amiga Compiler 6.56
  32. Copyright (c) 1988-1995 SAS Institute Inc.
  33. CXERR: 460351, Line: 227, Qpos: 504
  34.  
  35. Compiler options: NOSTKCHK DEBUG=FULL
  36.  
  37. The logmsg->lm_ArgArray reference seems to cause the CXERR. If I change the code
  38. a bit goes the CXERR away:
  39. ------------------begin--------------------
  40. [...]
  41. if(ReqToolsBase = (struct ReqToolsBase *) OpenLibrary(REQTOOLSNAME, 38))
  42. {
  43.    STRPTR argarray = logmsg->lm_ArgArray;
  44.  
  45.    logmsg->lm_Return = rtEZRequestTags(mem, logmsg->lm_GadFmt ? (STRPTR) logmsg->lm_GadFmt : (STRPTR) "Continue",
  46.       NULL, argarray,
  47.       RTEZ_ReqTitle, logmsg->lm_Program,
  48.       (pubscreen ? RT_PubScrName : TAG_IGNORE), pubscreen, 
  49.       RT_Underscore, '_',
  50.       TAG_END);
  51.  
  52.    CloseLibrary((struct Library *) ReqToolsBase);
  53. }
  54. [....]
  55. ------------------end--------------------
  56.  
  57. -- 
  58. |  Eivind 'Leo' Nordseth  |  IRC #amiga: Leo   |   leo@powertech.no  |
  59. +-------------------------+--------------------+---------------------+
  60. |      THOR 2.2 Team      |  http://www.cs.uit.no/~kjelli/thor.html  |
  61.  
  62. How many WASPs does it take to change a light bulb?
  63. Two: One to change the bulb and one to mix the drinks.
  64.  
  65.